package file.a03;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class FileInputStreamTest {
    public static void main(String[] args) throws IOException {
        InputStream is=new FileInputStream("IO-DEMO.iml");
        int hasRead=0;
        byte[] bbuf=new byte[1024];
        while((hasRead=is.read(bbuf))>0){
            System.out.println(new String(bbuf,0,hasRead));
        }
        is.close();
    }
}
